package com.mybatis.lo.sqlsource;

import com.mybatis.lo.mapping.BoundSql;
import com.mybatis.lo.sqlnode.SqlNode;
import lombok.AllArgsConstructor;

/**
 * 封装了`${}`和动态标签的SQL信息
 * @author zhangbh
 * 2023-06-09 20:08
 **/
@AllArgsConstructor
public class DynamicSqlSource extends BaseSqlSource {

    /**
     * 复合查询节点
     */
    private SqlNode mixedSqlNode;

    @Override
    public BoundSql getBoundSql(Object param) {
        return getBoundSql(param, mixedSqlNode);
    }
}
